package com.oig.sys.workflow.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
public class FlowFormVo {

    @Schema(description = "ID")
    private Integer id;

    @Schema(description = "流程配置id")
    private Integer flowConfigId;

    @Schema(description = "表单id")
    private String fieldId;
    @Schema(description = "表单名称")
    private String fieldName;
    @Schema(description = "表单类型 对应枚举FormType")
    private String fieldType;
    @Schema(description = "是否必填")
    private String required;
    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "备选项 json格式: [{\"value\":\"m82xbuhf-b0d0p09xk3h-0\",\"text\":\"公章\"}]")
    private String fieldOption;

    @Schema(description = "父表单项id 嵌套时有")
    private Integer parentId;

    @Schema(description = "fieldType=fieldList 时是表格，有子表单")
    private List<FlowFormVo> children;

}
